package com.zhyl.demo.service;

import com.zhyl.demo.entity.Doctor;

import javax.print.Doc;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;


/**
 * @author yang3
 */
public interface DoctorService {
    /**
     * 得到医生信息
     * @param docId
     * @return
     */
    Doctor docInfo(Integer docId);

    /**
     * 返回当前科室下的所有医生信息
     * @param specialty
     * @return
     */
    ArrayList<Doctor> docList(String specialty);

    /**
     * 通过登录id获取doctor信息
     * @param userId
     * @return
     */
    Doctor getDoc(Integer userId);

    /**
     * 得到所有医生信息
     * @return
     */
    ArrayList<Doctor> getAllDoc();

    ArrayList<Doctor> selectBySpecialty(String sname);

    boolean updateDocInfo(Doctor doctor);

    boolean deleteDoc(Integer id);

    Boolean addDoc(Doctor doctor);

    List<Doctor> getDocByName(String name);

    ArrayList<Doctor> searchDocByName(String specialty, String docName);
}
